package platform.user.repository;

import platform.user.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * 用户 数据接口
 *
 * @author roamer
 * @version V1.0
 * @date 2019-03-10 10:17
 */
public interface UserRepository extends MongoRepository<User, Long> {

    /**
     * 查询用户
     *
     * @param username 用户名
     *
     * @return {@code User}
     */
    User queryByUsername(String username);

}
